import { translateTitle } from '@/utils/i18n'
const GroupingConfig = {
  GroupingConfig: {
    search: {
      form: {
        method: 'dams.app.timer.group.query',
        name: 'search',
        field: [
          {
            type: 'input',
            name: 'GROUP_NAME',
            label: translateTitle('Dams.ApplicationInterface.分组名'),
            labelHidden: false,
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.查询'),
            labelHidden: true,
          },
        ],
      },
    },
    dialog: {
      form: {
        method: '',
        name: 'dialog',
        field: [
          {
            type: 'input',
            name: 'GROUP_NAME',
            label: translateTitle('Dams.ApplicationInterface.分组名'),
            isRules: true,
            disabled_edit: true,
          },
          {
            type: 'input',
            name: 'GROUP_CN_DESC',
            label: translateTitle('Dams.ApplicationInterface.中文描述'),
            isRules: true,
          },
          {
            type: 'input',
            name: 'GROUP_EN_DESC',
            label: translateTitle('Dams.ApplicationInterface.英文描述'),
            isRules: true,
          },
          {
            type: 'input',
            name: 'TIMER_HOST',
            label: translateTitle('Dams.ApplicationInterface.业务逻辑IP地址'),
            isRules: true,
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.提交'),
            labelHidden: true,
          },
        ],
      },
    },
    deleteMethod: 'dams.app.timer.group.delete',
    updateMethod: 'dams.app.timer.group.update',
    addMethod: 'dams.app.timer.group.insert',
  },
}
export default GroupingConfig
